package com.tbit.uqbike.client.constant;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

/**
 * 拍照还车功能模块常量
 *
 * @author <a href="mailto:chen.xiaoliang@tbit.com.cn">chen</a>
 * @version 1.0
 * @see <a href="#">拍照还车功能模块常量</a> todo
 * @since 2024/9/11
 */
public class FunctionModelConstant {
    //H带颜色卡
    public static final Integer HUAHUI_PEDAL_WITH_COLOR_CARD = 1;
    //自研拍踏板带颜色卡
    public static final Integer SELF_PRODUCED_PEDAL_WITH_COLOR_CARD = 2;
    //自研拍自行车坐垫
    public static final Integer SELF_PRODUCED_BICYCLE_SEAT_CUSHION = 3;
    //自研拍踏板
    public static final Integer SELF_PRODUCED_PEDAL = 5;
    //自研拍车牌(识别脚踏板停车线)
    public static final Integer SELF_PRODUCED_MACHINE_PEDAL_PLATE = 6;
    //自研拍车牌(识别尾部停车线)
    public static final Integer SELF_PRODUCED_MACHINE_TAIL_PLATE = 7;
    //自研拍车牌(识别脚踏板停车线+车牌)
    //public static final Integer SELF_PRODUCED_MACHINE_PEDAL_LICENSE_PLATE = 8;
    //自研拍车牌(识别尾部停车线+车牌)
    public static final Integer SELF_PRODUCED_MACHINE_TAIL_LICENSE_PLATE = 9;


    private static final Set<Integer> LICENSE_PLATE_MODELS = new HashSet<>(Arrays.asList(
            SELF_PRODUCED_MACHINE_TAIL_PLATE,
            SELF_PRODUCED_MACHINE_TAIL_LICENSE_PLATE
    ));

    public static Boolean isLicensePlate(Integer modelId) {
        return LICENSE_PLATE_MODELS.contains(modelId);
    }

}